namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 扫码枪配置表
    /// </summary>
    [SugarTable("scanner_config")]
    public class ScannerConfig : BaseEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "production_line_code")]
        public string ProductionLineCode { get; set; }

        /// <summary>
        /// 工位代号
        /// </summary>
        [SugarColumn(ColumnName = "workstation_code")]
        public string WorkstationCode { get; set; }

        /// <summary>
        /// 扫码枪类型
        /// </summary>
        [SugarColumn(ColumnName = "scanner_type")]
        public string ScannerType { get; set; }

        /// <summary>
        /// TCP地址
        /// </summary>
        [SugarColumn(ColumnName = "tcp_address")]
        public string TcpAddress { get; set; }

        /// <summary>
        /// TCP端口
        /// </summary>
        [SugarColumn(ColumnName = "tcp_port")]
        public int? TcpPort { get; set; }

        /// <summary>
        /// 端口号
        /// </summary>
        [SugarColumn(ColumnName = "serial_port")]
        public string SerialPort { get; set; }

        /// <summary>
        /// 波特率
        /// </summary>
        [SugarColumn(ColumnName = "baud_rate")]
        public int? BaudRate { get; set; }

        /// <summary>
        /// 数据位
        /// </summary>
        [SugarColumn(ColumnName = "data_bits")]
        public int? DataBits { get; set; }

        /// <summary>
        /// 停止位
        /// </summary>
        [SugarColumn(ColumnName = "stop_bits")]
        public int? StopBits { get; set; }

        /// <summary>
        /// 校验位
        /// </summary>
        public string Parity { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }
    }
}